<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.training.dto.Employee"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

       <a href="logoutServlet" style="align:right; ">Logout</a> 
       <a href="update.jsp" style="align:right; ">Update My Record</a>
    
	<%
		Employee employee = (Employee) session.getAttribute("employee");

		if (employee != null) {
	%>


	<h1>Welcome to Our World ....</h1>
	<br>

	<h2>
		User Name :
		<%=employee.getUserName()%><br>
	</h2>
	<h2>
		Employee ID :
		<%=employee.getEmployeeId()%><br>
	</h2>
	<h2>
		First Name :
		<%=employee.getFirstName()%><br>
	</h2>
	<h2>
		Last Name :
		<%=employee.getLastName()%><br>
	</h2>

	<%
		} else {
	%>
	NO Employee Records available
	<%
		}
	%>
</body>
</html>